<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改学员信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-info-edit" th:object="${tStudentInfo}">
            <input name="ID" th:field="*{ID}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">报名日期：</label>
                <div class="col-sm-8">
                   <div class="input-group date">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                <input type="text" class="form-control" th:value="${#dates.format(tStudentInfo.baomingriqi, 'yyyy-MM-dd')}"  name="baomingriqi" id="baomingriqi" placeholder="yyyy-MM-dd" required>
                           		 </div>
               		</div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">微信昵称：</label>
                <div class="col-sm-8">
                    <input name="wxNickName" th:field="*{wxNickName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">微信号：</label>
                <div class="col-sm-8">
                    <input name="wxNo" th:field="*{wxNo}" class="form-control" type="text" required>
                </div>
            </div>
              <div class="form-group">    
                <label class="col-sm-3 control-label is-required">QQ号：</label>
                <div class="col-sm-8">
                    <input name="qqNo" th:field="*{qqNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">学费：</label>
                <div class="col-sm-8">
                    <input name="money" th:field="*{money}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收费模式：</label>
                <div class="col-sm-8">
                    <select name="shoufeimoshi" class="form-control m-b" th:with="type=${@dict.getType('CHARGE_TYPE')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{shoufeimoshi}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">提成：</label>
                <div class="col-sm-8">
                    <input name="ticheng" th:field="*{ticheng}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转化：</label>
                <div class="col-sm-8">
                    <input name="zhuanhua" th:field="*{zhuanhua}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">助教：</label>
                <div class="col-sm-8">
                    <input name="zhujiao" th:field="*{zhujiao}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">售后：</label>
                <div class="col-sm-8">
                    <input name="shouhou" th:field="*{shouhou}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">科目：</label>
                <div class="col-sm-8">
                    <select name="kemu" class="form-control m-b" th:with="type=${@dict.getType('PROJECT_TYPE')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{kemu}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/info";
        $("#form-info-edit").validate({
            focusCleanup: true
        });
        $("#baomingriqi").datetimepicker({
        	format: "yyyy-mm-dd",
   		    minView: "month",
   		    autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-info-edit').serialize());
            }
        }
    </script>
</body>
</html>